package org.telegram.bot.service.impl;

import org.springframework.stereotype.Service;
import org.telegram.bot.service.IBotProhibitedWordsService;
import org.telegram.bot.service.ISensitiveWordApi;

import jakarta.annotation.Resource;

import java.util.List;

/**
 * 敏感词 API 实现类
 *
 * @author 永不言败
 */
@Service
public class SensitiveWordApiImpl implements ISensitiveWordApi {

    @Resource
    private IBotProhibitedWordsService sensitiveWordService;

    @Override
    public List<String> validateText(Long chatId,String text) {
        return sensitiveWordService.validateText(chatId,text);
    }

    @Override
    public boolean isTextValid(Long chatId,String text) {
        return sensitiveWordService.isTextValid(chatId,text);
    }
}
